package com.huijie.app.u.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.huijie.core.common.BaseEntity;

/**
 * <p>
 * 租户角色关系表
 * </p>
 *
 * @author echen
 * @since 2019-01-09
 */
@TableName("u_tenant_role")
public class TenantRole extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 租户id
     */
    private Integer tenantId;

    /**
     * 角色id
     */
    private Integer roleId;

    /**
     * 用户类型(1系统用户，2内部员工，3外部人员)
     */
    private Boolean userType;

    public Integer getTenantId() {
        return tenantId;
    }

    public void setTenantId(Integer tenantId) {
        this.tenantId = tenantId;
    }
    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
    public Boolean getUserType() {
        return userType;
    }

    public void setUserType(Boolean userType) {
        this.userType = userType;
    }

    @Override
    public String toString() {
        return "TenantRole{" +
        "tenantId=" + tenantId +
        ", roleId=" + roleId +
        ", userType=" + userType +
        "}";
    }
}
